package com.zzty.training.dao;

import com.zzty.training.entity.TeamExam;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeamExamDao {
    @Select("select * from teamExam")
    List<TeamExam> getAllTeamExam();
    @Insert("insert into teamExam (questionId,classId,date) values (#{questionId},#{classId},#{date})")
    Integer addTeamExam(TeamExam teamExam);
}
